Learn R Programming

someMTP (version 1.4.1)

lsd.object class: Class "lsd.object" for storing the result of the function lsd

Description

The class lsd.object is the output of a call to lsd.test

Arguments

Slots

F :
the test statistic
df :
the degrees of freedom of F
globalP:
the associated p-value
D:
the matrix used in the test (it provides the influence of columns in resp to the test statistic)
call:
The matched call to lsd.
MTP:
The procedure used ("fdrOrd", "kfweOrd" or others).

Methods

p.value
(lsd.object): Extracts the p-values.
show
lsd.object: Prints the test results: p-value, test statistic, expected value of the test statistic under the null hypothesis, standard deviation of the test statistic under the null hypothesis, and number of covariates tested.
summary
lsd.object: Prints the test results: p-value, test statistic, expected value of the test statistic under the null hypothesis, standard deviation of the test statistic under the null hypothesis, and number of covariates tested.
weights
lsd.object: diagonal of matrix D used in the test (i.e. the influence of columns in resp to the test statistic)

See Also

lsd

Examples

Run this code
    # Simple examples with random data here
    set.seed(1)
	#Standard multivariate LSD test for one sample case
	X=matrix(rnorm(50),5,10)+5
	res <- lsd.test(resp=X,alternative=~1)
	print(res)
	p.value(res)
    summary(res,showD=TRUE)

Run the code above in your browser using DataLab